<!-- шаблон страницы редактирования пользователя -->

{% extends 'worklink/base.html' %}
{% load static %}


{% block content %}
<div class="container">
    <div class="form-group row">
        <div class="user_avatar float-right">
<!--            <img src="/media/{{ user.avatar | default:'users_avatars/avatar.png' }}">-->

            <img src="/media/{{ user.avatar | default:'avatar.png' }}">
        </div>
        <div class="profile-wrapper">
            <form class="col-lg-offset-4  form-horizontal "
                  action="{% url 'auth:edit' %}" method="post"
                  enctype="multipart/form-data">
                {% csrf_token %}
                {{ edit_form.as_p }}
                {{ profile_form.as_p }}
                <input class="form-control btn btn-outline-success"
                       type="submit" value="сохранить">

                <button class="btn btn-outline-warning
                form-control col-lg-offset-4 last">
                    <a style="color: black; text-decoration: none"
                       href="{% url 'index' %}" class="">
                        на главную
                    </a>
                </button>
            </form>
        </div>
    </div>
</div>
{% endblock %}